package com.wfc.dao;

import com.wfc.entity.Dish;

import java.util.List;

public interface DishDao {
    //查看信息
    public List<Dish> getDishByTitle();
    //增加信息
    public boolean addDish(Dish dish);

    //通过菜单名查看
    public Dish selectBydname(String dname);
    //通过菜单id查看
    public Dish selectById(int id);
    //通过菜单名查看
    public List<Dish> selectByuname(String uname);

    //根据id修改菜单的信息
    public int update(Dish dish);

    //通过类别查找全部
    public List<Dish> selectBycategory1(String category);

//    根据id删除菜品
    public int deleteById(int id);

    //模糊查询
    public List<Dish> selectLike(String name);


}
